home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000095_news@columbia.edu _Sun Mar 5 11:42:42 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA13047
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 5 Mar 2000 11:42:42 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id LAA15322
  7.     for kermit.misc@watsun.cc.columbia.edu; Sun, 5 Mar 2000 11:33:27 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: bug with Echo on Solaris
  11. Date: 5 Mar 2000 16:33:24 GMT
  12. Organization: Columbia University
  13. Message-ID: <89u28k$eun$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <38c15efa.2305895@jayathome>,
  17. Jay McCanta <jmccanta@immunex.com> wrote:
  18. : I believe this is an UNIX buffering issue. With this script...
  19. : set input echo on
  20. : echo 1
  21. : echo 2
  22. : set host ts:3000
  23. : echo 3
  24. : input -1 {bye}
  25. : echo 4
  26. : exit
  27. : Looking at the log during the INPUT command, line 3 is not there.
  28. : While waiting for {bye} in thee input stream, the input stream appears
  29. : in the log.  Only after the script exits, do the 3 and the 4 appear in
  30. : the log.  
  31. : Is there a way to flush the log after every echo?
  32. Sure.  Echo to standard error (which is unbuffered) rather than standard
  33. output.  Replace:
  34.  
  35.   echo foo
  36.  
  37. with:
  38.  
  39.   write error foo\13\10
  40.  
  41. or:
  42.  
  43.   write-line error foo
  44.  
  45. - Frank